package org.jsets.fastboot.uid.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.baidu.fsg.uid.worker.DisposableWorkerIdAssigner;
import com.baidu.fsg.uid.worker.WorkerIdAssigner;

public class AssignWorkerIdAssigner implements WorkerIdAssigner {

	private static final Logger LOGGER = LoggerFactory.getLogger(DisposableWorkerIdAssigner.class);

	private final Long assigned;

	public AssignWorkerIdAssigner(Long assigned) {
		this.assigned = assigned;
	}

    public long assignWorkerId() {
        LOGGER.info("worker node:" + this.assigned);
        return this.assigned;
    }
	
}
